package com.xjrh.traintravel.collector;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@Slf4j
public class CollectorAaaApplication {

	public static void main(String[] args) {
		try {
			SpringApplication.run(CollectorAaaApplication.class, args);

			log.warn("****************************************");
			log.warn("Service start success!");
			log.warn("****************************************");
		} catch (Exception e) {
			log.error("Service start fail!!!");
			e.printStackTrace();
		}
	}

}